﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace SAServices.Model
{
    [DataContract]
    public class CategoryInfo
    {
        private Guid m_id;
        private string m_name;
        private Guid m_parentId;
        private int m_idx;

        [DataMember]
        public Guid Id
        {
            get { return m_id; }
            set { m_id = value; }
        }
        [DataMember]
        public string Name
        {
            get { return m_name; }
            set { m_name = value; }
        }
        [DataMember]
        public Guid ParentId
        {
            get { return m_parentId; }
            set { m_parentId = value; }
        }
        [DataMember(IsRequired = true)]
        public int Idx
        {
            get { return m_idx; }
            set { m_idx = value; }
        }
    }
}
